<template>
	<view class="content">
		 token
	</view>
</template>
<script>
	export default {
		name: "devSave",
		data(){ 
			token:''
		},
		onLoad(option) {
			let token = option.token
			if (token != '' && token != undefined) {
				uni.setStorage({
				    key: 'custoken',
				    data: token
				});
				uni.setStorage({
					key: 'sessionId',
					data: option.sessionId
				});
			} else {
				uni.setStorage({
				    key: 'custoken',
				    data: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJBUFAiLCJ1c2VyX2lkIjoiMTE2NDUyMjMxNDU2NjUyMDgzNCIsImlzcyI6IlNlcnZpY2UiLCJleHAiOjE2OTA0NTk3MzIsImlhdCI6MTY4OTU5NTczMn0.fZCfuaxseGgD8DRM9QrMB6bH_FkqqOduZ25HQVHbYhY'
				});
				uni.setStorage({
				    key: 'sessionId',
				    data: 'f83cb05de8694072a5b936650c88cbf92'
				});
		
			}
			uni.getStorage({
				key: 'custoken',success:function(v){
					console.log(v.data)
				},
			})
			this.token = token
			
		}
	}
</script>

<style scoped>

</style>
